<%--@elvariable id="notes" type="java.util.List"--%>
<%--@elvariable id="type" type="com.genghis.ptas.classify.entity.TypeValues"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>公示笔记</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()%><c:url value="/"/>"/>


    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="corporate/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <!-- END GLOBAL MANDATORY STYLES -->

    <!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
    <link href="corporate/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet"/>
    <link href="corporate/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
    <!-- END PAGE LEVEL PLUGIN STYLES -->

    <!-- BEGIN THEME STYLES -->
    <link href="corporate/css/style-metronic.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/pages/search-page-results.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/themes/blue.css" rel="stylesheet" type="text/css" id="style_color"/>
    <link href="corporate/css/style-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="corporate/css/custom.css" rel="stylesheet" type="text/css"/>
    <!-- END THEME STYLES -->
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body>
<!-- BEGIN PAGE CONTAINER -->
<div class="page-container">

    <!-- BEGIN BREADCRUMBS -->
    <div class="row breadcrumbs margin-bottom-40">
        <div class="container">
            <div class="col-md-4 col-sm-4">
                <h1>公示笔记</h1>
            </div>
        </div>
    </div>
    <!-- END BREADCRUMBS -->

    <!-- BEGIN CONTAINER -->
    <div class="container min-hight">
        <div class="row margin-bottom-40">
            <div class="col-md-12 col-sm-12">
                <!-- BEGIN SEARCH FORM ON PAGE RESULTS -->
                <div class="row search-form-default">
                    <form class="form-inline" action="public/publicityNote">
                        <div class="input-group">
                            <div class="input-cont">
                                <input placeholder="查询..." name="search" class="form-control" type="text">
                            </div>
                            <span class="input-group-btn">
                            <button class="btn btn-default theme-btn" type="submit">查询 <i
                                    class="m-icon-swapright m-icon-white"></i></button>
                            </span>
                        </div>
                    </form>
                </div>
                <!-- END SEARCH FORM ON PAGE RESULTS -->
                <%--@elvariable id="pageMap" type="java.util.Map"--%>
                <c:if test="${pageMap['endCount']>0}">
                    <c:forEach var="i" begin="${pageMap['beginCount']}" end="${pageMap['endCount']-1}">
                        <div class="search-result-item">
                            <h4 style="color: #0000ff">${notes[i].noteName}</h4>

                            <p>${notes[i].noteContent}</p>
                            <a href="javascript:">${notes[i].createDate}</a>
                        </div>
                    </c:forEach>
                </c:if>
                <!-- BEGIN PAGINATION -->
                <div class="margin-top-20">

                    <ul class="pagination">
                        <li><a href="javascript:" style="height: 31px" onclick="skipPageFirst()"><i
                                class="fa fa-angle-double-left"></i></a></li>

                        <c:forEach var="item" varStatus="status" begin="${pageMap['beginPage']}"
                                   end="${pageMap['endPage']}">
                            <li>
                                <c:if test="${pageMap['page']==status.index}">
                                    <span>${status.index}</span>
                                </c:if>
                                <c:if test="${pageMap['page']!=status.index}">
                                    <a href='javascript:void(0);' onclick='skipPage(${status.index})'> ${status.index}
                                    </a>
                                </c:if>
                            </li>
                        </c:forEach>

                        <li><a href="javascript:void(0);" style="height: 31px" onclick="skipPageLast()"><i
                                class="fa fa-angle-double-right"></i></a></li>
                    </ul>

                </div>
                <!-- END PAGINATION -->
            </div>
        </div>
        <!-- END CONTAINER -->

    </div>
    <!-- END PAGE CONTAINER -->
    <!-- BEGIN COPYRIGHT -->
    <div class="copyright">
        <div class="container">
            <div class="row">
                <div class="col-md-8">
                    <p>
                        <span class="margin-right-10">2014 © 长春工业大学. 苏格拉没有底开发小队 版权所有 </span>
                    </p>
                </div>
                <div class="col-md-4">
                    <ul class="social-footer">
                        <li><img src="ecommerce/img/payments/western-union.jpg" alt="We accept Western Union"
                                 title="We accept Western Union"></li>
                        <li><img src="ecommerce/img/payments/american-express.jpg" alt="We accept American Express"
                                 title="We accept American Express"></li>
                        <li><img src="ecommerce/img/payments/MasterCard.jpg" alt="We accept MasterCard"
                                 title="We accept MasterCard"></li>
                        <li><img src="ecommerce/img/payments/PayPal.jpg" alt="We accept PayPal"
                                 title="We accept PayPal">
                        </li>
                        <li><img src="ecommerce/img/payments/visa.jpg" alt="We accept Visa" title="We accept Visa"></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- END COPYRIGHT -->
</div>
<!-- Load javascripts at bottom, this will reduce page load time -->
<!-- BEGIN CORE PLUGINS(REQUIRED FOR ALL PAGES) -->
<!--[if lt IE 9]>
<script src="corporate/plugins/respond.min.js"></script>
<![endif]-->
<script src="corporate/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="corporate/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="corporate/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="corporate/plugins/hover-dropdown.js"></script>
<script type="text/javascript" src="corporate/plugins/back-to-top.js"></script>
<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL JAVASCRIPTS(REQUIRED ONLY FOR CURRENT PAGE) -->
<script src="corporate/scripts/app.js"></script>
<!-- END PAGE LEVEL JAVASCRIPTS -->


</body>
<!-- END BODY -->
</html>
<script type="text/javascript">
    jQuery(document).ready(function () {
        App.init();
    });

    function skipPage(num) {
        location.href = "public/publicityNote?page=" + num;
    }
    //第一页
    function skipPageFirst() {
        $("#page").val(1);
        location.href = "public/publicityNote?page=1";
    }
    //最后一页
    function skipPageLast() {
        var page = '${pageMap.endPage}';
        location.href = "public/publicityNote?page=" + page;
    }

</script>